import request from '@/utils/request'

// 查询科室列表
export function listregistryCost(query) {
  return request({
    url: '/his/registryCost/list',
    method: 'get',
    params: query
  })
}

// 查询科室详细
export function getPost(registryCostId) {
  return request({
    url: '/his/registryCost/' + registryCostId,
    method: 'get'
  })
}

// 新增挂号费
export function addPost(data) {
  return request({
    url: '/his/registryCost/addRegistryCost',
    method: 'post',
    data: data
  })
}

// 修改科室
export function updatePost(data) {
  return request({
    url: '/his/registryCost',
    method: 'put',
    data: data
  })
}

// 删除科室
export function delPost(registryCostIds) {
  return request({
    url: '/his/registryCost/' + registryCostIds,
    method: 'delete'
  })
}

// 导出岗位
export function exportPost(query) {
  return request({
    url: '/system/post/export',
    method: 'get',
    params: query
  })
}
